import loadable from '../loading/index'
import loginSuess from "../left/sucess.jsx/index.js.js"
const loginIndex = loadable(()=>import("../pages/Login/index.jsx")),
notFind = loadable(()=>import("../component/404.jsx")),
shopIndex = loadable(()=>import("../pages/shop/index.jsx"));

let routes = [
    {
        path:"/",
        component: loginIndex,
        exact:true
    },
    {
        path:"/shop",
        component:loginSuess,
        exact:true,
        children:[
            {
                path:"/shop/list",
                component:shopIndex,
                exact:true
            }
        ]
    },
    {
        path:"*",
        component:notFind,
        exact:true
    }
];
export default routes;